package com.youth.orderservice.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youth.orderservice.entity.TOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author huangqicai
 * @since 2023-04-06
 */
public interface TOrderMapper extends BaseMapper<TOrder> {

    /*自定义查询*/
    IPage<TOrder> selectListOrders(IPage<TOrder> page, Map<String, Object> map);

    /*根据订单id删除订单*/
    boolean deleteOrder(@Param(value = "orderId") String orderId);
}
